Set Player Data Items
Set a data item with a given key and value for the specified player. The value is limited to a maximum size of 5 MB across all default access level slots. The entire default access level saved state for a player is limited to 2000 keys. Attempting to set a new key beyond this limit will result in an error.
Authentication Required: Yes
ugs cloud-save data player set [options]
Options
Alias | Description | |
---|---|---|
project-id | -p, --project-id | The Unity cloud project ID. |
environment | -e, --environment-name | The services environment name. |
player-id | --player-id | The player ID to set the data for. |
key | --key | The key of the key-value pair. The key will be created if it does not exist, provided the item limit of 2000 keys has not been reached for this entity. |
value | --value | Any string, number, boolean, or JSON string with a maximum size of 5 MB. |
writelock | --writelock | Enforces conflict checking when updating an existing data item. This field should be omitted when creating a new data item. When updating an existing item, omitting this field ignores write conflicts. When present, an error response will be returned if the writeLock in the request does not match the stored writeLock. |
visibility | --visibility | One of 'default', 'public', or 'protected'. If not set, 'default' will be used. |
help | -?, -h, --help | Display help and usage information. |
quiet | -q, --quiet | Reduce logging to a minimum. |
json | -j, --json | Use JSON as the output format. |